package com.yunwushanhe;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2 // 开启使用接口展示工具
@EnableScheduling
@SpringBootApplication
@EnableTransactionManagement // 此注解用于开启事务
@MapperScan("com.yunwushanhe.mapper") // 使用mybatis需要对mapper文件开启扫描,替代@Mapper注解
public class ADYBlogApplication {
    public static void main(String[] args) {
        SpringApplication.run(ADYBlogApplication.class,args);
    }
}
